<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\DbConnection\Model\Model;

/**
 * @property int $id 
 * @property string $title 
 * @property int $level 
 * @property int $num 
 * @property string $question_bank_group_id 
 * @property string $question_types 
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class CourseTaskPractice extends Model
{
    use Traits\HasTaskable;
    
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'course_task_practice';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'title', 'level', 'num', 'question_bank_group_id', 'question_types', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = [
        'id' => 'integer',
        'level' => 'integer',
        'question_bank_group_id' => 'json',
        'question_types' => 'json',
        'num' => 'integer',
        'created_at' => 'datetime',
        'updated_at' => 'datetime'
    ];
}
